using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_webparts_Plug_ins_CommonPage_CommonPageManagement : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string group = Request.QueryString["g"];
            string controlName = null;

            try
            {
                int.Parse(group);

                controlName = "CommonPageList.ascx";
            }
            catch (Exception)
            {
                Response.Redirect("?type=invalidurl", false);
                return;
            }

            if (controlName != null)
            {
                Control ctrl = LoadControl(controlName);
                this.Controls.Add(ctrl);
            }
        }
        catch (Exception) { };
    }
}
